package com.ruoyi.finance.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.finance.domain.TVoucherDetail;
import com.ruoyi.finance.domain.vo.CredentialRollupVo;

/**
 * 凭证明细Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-26
 */
public interface TVoucherDetailMapper extends BaseMapper<TVoucherDetail>
{
    /**
     * 查询凭证明细
     * 
     * @param voucherDetailId 凭证明细主键
     * @return 凭证明细
     */
    public TVoucherDetail selectTVoucherDetailByVoucherDetailId(Long voucherDetailId);

    /**
     * 查询凭证明细列表
     * 
     * @param tVoucherDetail 凭证明细
     * @return 凭证明细集合
     */
    public List<TVoucherDetail> selectTVoucherDetailList(TVoucherDetail tVoucherDetail);

    /**
     * 新增凭证明细
     * 
     * @param tVoucherDetail 凭证明细
     * @return 结果
     */
    public int insertTVoucherDetail(TVoucherDetail tVoucherDetail);

    /**
     * 修改凭证明细
     * 
     * @param tVoucherDetail 凭证明细
     * @return 结果
     */
    public int updateTVoucherDetail(TVoucherDetail tVoucherDetail);

    /**
     * 删除凭证明细
     * 
     * @param voucherDetailId 凭证明细主键
     * @return 结果
     */
    public int deleteTVoucherDetailByVoucherDetailId(Long voucherDetailId);

    /**
     * 批量删除凭证明细
     * 
     * @param voucherDetailIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTVoucherDetailByVoucherDetailIds(Long[] voucherDetailIds);

    public List<CredentialRollupVo> selectCredentialRollupList(CredentialRollupVo credentialRollupVo);

    Integer selectvoucherCount();

    Integer selectvoucherWordCount();
}
